package com.smallstep.apilimit.config;


import com.smallstep.apilimit.interceptor.ApiLimitInterceptor;
import com.smallstep.apilimit.properties.ApiLimitProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author 李俊
 * @Description
 * @Date 2019/9/5 17:26
 */
@EnableConfigurationProperties({ ApiLimitProperties.class })
public class ApiLimitConfig {

    @Bean
    public ApiLimitInterceptor apiLimitInterceptor() {
        return new ApiLimitInterceptor();
    }

}
